<?php

class Application_Form_Turnedit  extends Zend_Dojo_Form
{

    public function init()
    {

    	$this->setName("TurnEdit");
    	$this->setMethod('post');

    	$name = new Zend_Form_Element_Text('name');
    	$name->setLabel('Name:')
    	->setRequired(true);

    	$startdatum = new Zend_Dojo_Form_Element_DateTextBox('startdatum');
    	$startdatum->setLabel('Startdatum')
    	->setRequired(true);
    	
    	$zieldatum = new Zend_Dojo_Form_Element_DateTextBox('enddatum');
    	$zieldatum->setLabel('Zieldatum')
    	->setRequired(true);
    	
    	$status = new Zend_Form_Element_Select('status');
    	$status -> setLabel('Status:')
    	->setMultiOptions(array(
    			'Planung'=>'Planung',
    			'Organisiert'=>'Organisiert',
    			'Abgeschlossen'=>'Abgeschlossen',
    			'Abgebrochen'=>'Abgebrochen',
    	))
    	->setRequired(true);
    	
    	$submit = new Zend_Form_Element_Submit('submit');
    	$submit->setLabel('Update')
    	->setOptions(array('class' => 'submit'));
    	
    	
    	// attach elements to form
    	$this
    	->addElement($name)
    	->addElement($startdatum)
    	->addElement($zieldatum)
    	->addElement($status)
    	->addElement($submit);
    	
    	
    }


}

